package com.plugin.core.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 长者活动通知实体类
 * 
 * @author mark
 * @date 2025-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("elder_activity_notice")
@Schema(name = "ElderActivityNotice", description = "长者活动通知表")
public class ElderActivityNotice {

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "活动名称")
    @TableField("activity_name")
    private String activityName;

    @Schema(description = "活动开始时间")
    @TableField("start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "活动结束时间")
    @TableField("end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @Schema(description = "活动描述")
    @TableField("activity_description")
    private String activityDescription;

    @Schema(description = "活动地点")
    @TableField("activity_location")
    private String activityLocation;

    @Schema(description = "活动状态：0-已取消，1-正常，2-已结束")
    @TableField("activity_status")
    private Integer activityStatus;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;

    @Schema(description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;

    @Schema(description = "删除标志：0-未删除，1-已删除")
    @TableField("del")
    private Integer del;

}
